<script setup>

import TableComponent from "@/components/TableComponent.vue";
import {ref} from "vue";
const title = ref([
  {
    propName: 'name',
    name: '专业名称',
  },
  {
    propName: 'id',
    name: '专业代码',
  },
  {
    propName: 'totalClass',
    name: '班级数量',
  },
  {
    propName: 'totalStudents',
    name: '专业学生人数',
  },
  {
    propName: 'collegeName',
    name: '所属学院',
  }
])

const url = ref({
  deleteUrl: '',
  editUrl: '',
  searchUrl: '/major/get-search',
  showUrl: '/major/get-all-majors',
  getCountUrl: 'major/get-major-count',
})
const formVisible = ref(false)
const handleDialogCancel = (visible) => {
  formVisible.value = visible
  console.log('cancel', visible)
}
</script>

<template>
  <div class="container">
    <div class="table-container">
      <TableComponent class="table" :title="title" :url="url" form-type="Major"/>
    </div>
  </div>
</template>

<style scoped>
</style>
